﻿local L=BATTLEINFO_LOACALE
--[[
	fix a blizzard bug that av states not shown before battle starts
	by farmer1992@gmail.com
]]
local OldGetNumWorldStateUI=GetNumWorldStateUI

GetNumWorldStateUI=function(...)
	if BattleInfo_SafeZone()==L.ALTERAC then
		return 2
	else
		return OldGetNumWorldStateUI(...)
	end
end

local OldGetWorldStateUIInfo=GetWorldStateUIInfo

GetWorldStateUIInfo=function(...)

	if BattleInfo_SafeZone()==L.ALTERAC then
		local r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11=OldGetWorldStateUIInfo(...)
		return r1,1,r3,r4,r5,r6,r7,r8,r9,r10,r11
	else
		return OldGetWorldStateUIInfo(...)
	end
end